package framework.customer;

import framework.interfaces.IAddress;
import framework.interfaces.IPerson;

public class Person extends Customer implements IPerson {

	private String birthDate;

	public Person(String name, IAddress address, String birthDate) {
		super(name, address);
		this.birthDate = birthDate;
	}

	@Override
	public String toString() {
		StringBuilder str = new StringBuilder();
		str.append("Name: " + name);
		str.append(" Street: " + address.getStreet());
		str.append(" City: " + address.getCity());
		str.append(" State: " + address.getState());
		str.append(" Zip: " + address.getZipCode());
		str.append(" Birth date: " + birthDate);
		str.append(" eMail: " + address.getEmail());
		return str.toString();
	}

	@Override
	public String getBirthDate() {
		return birthDate;
	}
}
